package com.tudouji.project.store.service;

import java.util.List;
import com.tudouji.project.store.domain.Storeroom;

/**
 * 库房管理Service接口
 * 
 * @author tudouji
 * @date 2021-01-04
 */
public interface IStoreroomService 
{
    /**
     * 查询库房管理
     * 
     * @param guid 库房管理ID
     * @return 库房管理
     */
    public Storeroom selectStoreroomById(Long id);
    public Storeroom selectStoreroomByGuid(String guid);

    /**
     * 查询库房管理列表
     * 
     * @param storeroom 库房管理
     * @return 库房管理集合
     */
    public List<Storeroom> selectStoreroomList(Storeroom storeroom);

    public List<Storeroom> selectStoreroomListByPermiss(Storeroom storeroom, String tuserId) throws Exception;

    /**
     * 新增库房管理
     * 
     * @param storeroom 库房管理
     * @return 结果
     */
    public int insertStoreroom(Storeroom storeroom);

    /**
     * 修改库房管理
     * 
     * @param storeroom 库房管理
     * @return 结果
     */
    public int updateStoreroom(Storeroom storeroom);

    /**
     * 批量删除库房管理
     * 
     * @param guids 需要删除的库房管理ID
     * @return 结果
     */
    public int deleteStoreroomByIds(String[] guids);

    /**
     * 删除库房管理信息
     * 
     * @param guid 库房管理ID
     * @return 结果
     */
    public int deleteStoreroomById(String guid);

    /**
     * @Description: 通过组织id查询一个销售中转库
     * @Author: xiaxl
     * @Date:
     * @Param:
     * @return:
     **/
    public Storeroom selectSaleTransferStore(String orgId);


    public List<Storeroom> getStoreRoomByOrgIdOrPermissions(String guid, Integer enable, Integer type
            , Integer send
            , Integer flag,Integer permissionFlag, String functionType, Integer permissionId);
    public List<Storeroom> getStoreRoomsByCondition(String orgguid, Long deptId, Integer innerOut);

    public List<Storeroom> findSRByPermiss(Integer permiss);
}
